﻿using SCM.Common;
using SCM.Model;
using SCM.Model.DBEntity;
using System.Collections.Generic;

namespace SCM.Servie.IBusiness
{
    /// <summary>
    /// 用户接口接口
    /// </summary>
    public interface IUserService
    {
        bool Add(AddUpdateUserVo model);

        bool Delete(List<string> ids);

        bool Update(AddUpdateUserVo model);

        AddUpdateUserVo GetById(string id);

        T_User GetByUserAccount(string userAccount, string password);

        LoginResultVo Login(string userAccount, string password);

        List<QueryUserVo> GetList(string companyId);

        PageData<QueryUserVo> Query(string companyId, string userAccount, string displayName, PageInfo page);

        bool Registe(LoginRegisteVo model);

        bool UpdatePwd(T_User model);

    }
}
